<a href="<?php echo url('ftp_project/new');?>">新建</a>
<table class="records">
	<thead>
		<tr>
			<th>id</th>
			<th>name</th>
			<th>本地路径</th>
			<th>远程路径</th>
			<th>created_at</th>
			<th>actions</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($records as $record):?>
		<tr>
			<td><?php echo $record['id'];?></td>
			<td><?php echo $record['name'];?></td>
			<td><?php echo $record['local_dir'];?></td>
			<td><?php echo $record['remote_dir'];?></td>
			<td><?php echo date('Y/m/d H:i:s',$record['created_at']);?></td>
			<td>
				<a href="<?php echo url('ftp_project/edit/'.$record['id']);?>">edit</a>
				<a href="<?php echo url('ftp_project/delete/'.$record['id']);?>">del</a>
			</td>
		</tr>
		<?php endforeach;?>
	</tbody>
</table>